﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebService_Newstore.Controller;

namespace WebService_Newstore.DTO
{
    public class ArticleDTO
    {
        public int idMySql { get; set; }
        public int idOracle{ get; set; }
        public string reference { get; set; }
        public string designation { get; set; }
        public int idUniteReference { get; set; }

        public ArticleDTO() { }

        public void AfficheArticle()
        {
            Console.WriteLine("Id = " + this.idMySql);
            Console.WriteLine("IdOracle = " + this.idOracle);
            Console.WriteLine("référence = " + this.reference);
            Console.WriteLine("designation = " + this.designation);
            Console.WriteLine("IdUniteRef = " + this.idUniteReference);
            Console.ReadLine();
        }

        public override string ToString()
        {
            return "Id = " + this.idMySql + " IdOracle = " + this.idOracle + " référence = " + this.reference + " designation = " + this.designation + " IdUniteRef = " + this.idUniteReference;
        }
    }
}